package com.yuwei.module_repair.adapter

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.yuwei.module_repair.R
/**
 * 智慧园区-01-设备管理V1.1-20250507
 */
class ImageAdapter: BaseQuickAdapter<String,BaseViewHolder>(
    R.layout.item_image
) {
    override fun convert(holder: BaseViewHolder, item: String) {
        val imageView = holder.getView<ImageView>(R.id.image)
        Glide.with(imageView.context).load(item).into(imageView)
    }
}